//
//  NSString.h
//  Meng800
//
//  Created by 姚宗超 on 14-7-23.
//  Copyright (c) 2014年 点财网. All rights reserved.
//

#import <Foundation/Foundation.h>

#define kChatTimeStampInterval (1 * 60)

@interface NSDate (Business)

// Meng800用
- (NSString *)newsTableTimeString;



// 将NSDate解析为聊天界面的时间戳标记
- (NSString *)parserToChatTimeStampString;

//DD-MM-YYYY
- (NSString *)stringFromNSDate;

//YYYY-MM-DD
- (NSString *)stringFromNSDateDetail;

// 2014-8-18 14:23
- (NSString *)detailStringFromDate;

// 打时间戳规定的事件间隔，超过此间隔，就要在聊天界面上显示时间戳
- (BOOL)earlierThanTimeInterval:(NSDate *)date;


/**
 * Convenience methods for date comparisons. Easier to read than -[NSDate compare:]
 */
- (BOOL)isEarlierThanDate:(NSDate *)date;
- (BOOL)isEarlierThanOrEqualToDate:(NSDate *)date;
- (BOOL)isLaterThanDate:(NSDate *)date;
- (BOOL)isLaterThanOrEqualToDate:(NSDate *)date;

@end
